package cc.eddic.practice.spring.dto;

import cc.eddic.practice.spring.domain.Option;
import cc.eddic.practice.spring.domain.Question;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OptionAddRequest {
    private String answer;
    private char choice;
    private boolean isCorrectAnswer;

    private Question question;

    public Option as(){
        return new Option(this.answer,this.choice,this.isCorrectAnswer,this.question);
    }
}
